package com.hua.server.oauth.strategy;

import org.springframework.security.crypto.password.PasswordEncoder;
import org.springframework.security.oauth2.config.annotation.configurers.ClientDetailsServiceConfigurer;
import org.springframework.security.oauth2.config.annotation.web.configurers.AuthorizationServerEndpointsConfigurer;
import org.springframework.security.oauth2.provider.token.TokenStore;

/**
 * 配置服务端 clients 与 tokenEndPoint
 *
 * @author 华云龙
 * @date 2019-5-27
 */
public interface AuthorizationServerConfigurerStrategy {

    void configure(ClientDetailsServiceConfigurer clients, PasswordEncoder passwordEncoder) throws Exception;

    TokenStore configure(AuthorizationServerEndpointsConfigurer endpoints) throws Exception;
}
